package com.mDigitalHealth.database;

public enum DataType {
	DAILY_DATA, HOUR_DATA, USER_INFO;
	
	public static DataType fromString(String string) {
		if (string.equals(DAILY_DATA.toString())) 
			return DAILY_DATA;
		else if(string.equals(HOUR_DATA.toString()))
			return HOUR_DATA;
		else if(string.equals(USER_INFO.toString()))
			return USER_INFO;
		
		return null;
	}
	
}
